<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $html->charset(); ?>
	<title><?php echo Configure::read('Settings.title')?> : <?php echo $title_for_layout; ?></title>
	<?php
		echo $html->meta('icon');
		echo $html->css('maestro');
		echo $html->css('superfish/superfish');
		echo $javascript->link('jquery-1.3.2.min');
		echo $javascript->link('jquery.hoverIntent.minified');
		echo $javascript->link('superfish');
		echo $scripts_for_layout;
	?>
<script type="text/javascript"> 
$(document).ready(function(){ 
	$("ul.sf-menu").superfish(); 
});
</script>
</head>
<body>
	<div id="container">
		<div id="header">
			<h1><?//=$html->image(Configure::read('Settings.logo-small')) ?> <a href="/"><?php echo Configure::read('Settings.title')?> : <?php echo Configure::read('Settings.description')?></a></h1>
			<?php if($session->read('Auth.Maestro')) echo $maestro->showTreeMenus() ?>
		</div>
		<div id="content">
			<?php
				if ($session->check('Message.flash')):
						$session->flash();
				endif;
			?>

			<?php echo $content_for_layout; ?>

		</div>
		<div id="footer">
			Copyright &amp;copy <?php echo $html->link(Configure::read('Settings.copyright'), Configure::read('Settings.site_url')); ?> /
			<?php echo 'Powered By Samgu.Lee (cable8mm@gmail.com)' ?>
		</div>
	</div>
	<?php echo $cakeDebug; ?>
</body>
</html>